package com.lkbaby.home.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * Generate ID
 *
 * @version V4.0.1
 * @date 2024/3/18 9:08
 * @since 4.0.0
 */
public class MyIDUtils {

	public static String getNewID() {
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
		String format = simpleDateFormat.format(new Date());
		StringBuilder stringBuffer = new StringBuilder(format);
		stringBuffer.append((new Random()).nextInt(10));
		return stringBuffer.toString();
	}

}
